/**
 * Created by Administrator on 2017/4/12.
 */
swan_pc.config(
    function($stateProvider){
        $stateProvider
            .state('myOppList', {
                parent:'site',
                url:'/myOppList',
                views:{
                    'content@':{
                        templateUrl:'scripts/components/organizationBusiness/myOpp/myOppList.html',
                        controller:'MyOppListController'
                    }
                }
            })
    })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppInfo', {
                    parent:'site',
                    url:'/myOppInfo',
                    views:{
                        'content@':{
                            templateUrl:'scripts/components/organizationBusiness/myOpp/myOppPage.html',
                            controller:'MyOppListController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppBase', {
                    parent:'myOppInfo',
                    url:'/base',
                    views:{
                        'component@myOppInfo':{
                            templateUrl:'scripts/components/organizationBusiness/opp/oppBase.html',
                            controller:'OrgOppBaseController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppDecision', {
                    parent:'myOppInfo',
                    url:'/decision',
                    views:{
                        'component@myOppInfo':{
                            templateUrl:'scripts/components/organizationBusiness/opp/oppDecision.html',
                            controller:'OrgOppDecisionController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppEnemy', {
                    parent:'myOppInfo',
                    url:'/enemy',
                    views:{
                        'component@myOppInfo':{
                            templateUrl:'scripts/components/organizationBusiness/opp/oppEnemy.html',
                            controller:'OrgOppEnemyController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppPartner', {
                    parent:'myOppInfo',
                    url:'/partner',
                    views:{
                        'component@myOppInfo':{
                            templateUrl:'scripts/components/organizationBusiness/opp/oppPartner.html',
                            controller:'OrgOppPartnerController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppRelevant', {
                    parent:'myOppInfo',
                    url:'/relevant',
                    views:{
                        'component@myOppInfo':{
                            templateUrl:'scripts/components/organizationBusiness/opp/oppRelevant.html',
                            controller:'OrgOppRelevantController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppProduct', {
                    parent:'myOppInfo',
                    url:'/product',
                    views:{
                        'component@myOppInfo':{
                            templateUrl:'scripts/components/organizationBusiness/opp/oppProduct.html',
                            controller:'OrgOppProductController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppClassify', {
                    parent:'myOppInfo',
                    url:'/classify',
                    views:{
                        'component@myOppInfo':{
                            templateUrl:'scripts/components/organizationBusiness/opp/oppClassify.html',
                            controller:'OrgOppClassifyController'
                        }
                    }
                })
        })
    .config(
        function($stateProvider){
            $stateProvider
                .state('myOppTeam', {
                    parent:'myOppInfo',
                    url:'/team',
                    views:{
                        'component@myOppInfo':{
                            templateUrl:'scripts/components/organizationBusiness/opp/oppTeam.html',
                            controller:'OrgOppTeamController'
                        }
                    }
                })
        })